package com.itheima.a10oopextensdemo10;

public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("heima001", "张三", 15000, 8000);
        System.out.println(m.getId() + " " + m.getName() + " " + m.getSalary() + " " + m.getBonus());
        m.work();
        m.eat();

        System.out.println("————————————————");

        Cook c = new Cook("heima002", "李四", 8000);
        System.out.println(m.getId() + " " + m.getName() + " " + m.getSalary());
        m.work();
        m.eat();
    }
}
